<?php

class Core_Plugin_Router_Rule_Admin
{

    public function match($request)
    {
        $path = $request -> getPathInfo();
        $path = trim($path, '/');

        // is admin request.
        if (strpos($path, 'admin') === 0)
        {
            Nuo::set('theme', 'admin');
        }
    }
}